package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 项目管理对象 sys_project
 * 
 * @author cooc
 * @date 2024-06-19
 */
public class SysProject extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    public static final int PROJECT_STATUS_NORMAL = 0;
    public static final int PROJECT_STATUS_DISABLE = 1;

    /** 项目主键 */
    private Long id;

    /** 项目名称 */
    @Excel(name = "项目名称")
    private String name;

    /** 项目编号 */
    @Excel(name = "项目编号")
    private String num;

    /** 节目平台 */
    @Excel(name = "节目平台")
    private String platform;

    /** 节目状态 */
    @Excel(name = "节目状态")
    private String statusPro;

    /** 项目创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "项目创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startTime;

    /** 项目启用时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "项目启用时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date enableTime;

    /**
     * 项目状态 0 启用  1停用
     */
    @Excel(name = "项目状态")
    private int projectStatus;

    /** 项目自定义字段 */
    private  String projectInfo;


    /**
     *  项目评分
     */
    private String projectScore;

    /** 项目授权人员ID */
    private Long[] authorIds;

    public SysProject() {
    }

    public SysProject(Long id, String projectInfo) {
        this.id = id;
        this.projectInfo = projectInfo;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setNum(String num) 
    {
        this.num = num;
    }

    public String getNum() 
    {
        return num;
    }
    public void setPlatform(String platform) 
    {
        this.platform = platform;
    }

    public String getPlatform() 
    {
        return platform;
    }
    public void setStatusPro(String statusPro) 
    {
        this.statusPro = statusPro;
    }

    public String getStatusPro() 
    {
        return statusPro;
    }
    public void setStartTime(Date startTime) 
    {
        this.startTime = startTime;
    }

    public Date getStartTime() 
    {
        return startTime;
    }
    public void setEnableTime(Date enableTime) 
    {
        this.enableTime = enableTime;
    }

    public Date getEnableTime() 
    {
        return enableTime;
    }

    public String getProjectInfo() {
        return projectInfo;
    }

    public int getProjectStatus() {
        return projectStatus;
    }

    public void setProjectStatus(int projectStatus) {
        this.projectStatus = projectStatus;
    }

    public void setProjectInfo(String projectInfo) {
        this.projectInfo = projectInfo;
    }

    public String getProjectScore() {
        return projectScore;
    }

    public void setProjectScore(String projectScore) {
        this.projectScore = projectScore;
    }

    public Long[] getAuthorIds() {
        return authorIds;
    }

    public void setAuthorIds(Long[] authorIds) {
        this.authorIds = authorIds;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("num", getNum())
            .append("platform", getPlatform())
            .append("statusPro", getStatusPro())
            .append("startTime", getStartTime())
            .append("enableTime", getEnableTime())
            .append("projectInfo", getProjectInfo())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
